import request from '@/utils/request'

export function fetchList(query) {
  return request({
    url: '/documentation/article/getList',
    method: 'post',
    data: query
  })
}

export function getDocumentation(id) {
  return request({
    url: '/documentation/article/getDetail',
    method: 'post',
    data: id
  })
}

export function changeArticleStatusByID(pv) {
  return request({
    url: '/documentation/article/change-status',
    method: 'post',
    data: pv
  })
}

export function removeArticleByID(pv) {
  return request({
    url: '/documentation/article/delete',
    method: 'post',
    data: pv
  })
}

export function saveArticle(data) {
  return request({
    url: '/documentation/article/save',
    method: 'post',
    data: data
  })
}
